home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / maximus / stview10.zip / UNPACK.CMD < prev    next >
OS/2 REXX Batch file  |  1996-04-21  |  1KB  |  63 lines

  1. @echo off
  2. rem ==--=StarBar archive extractor batch file=--==
  3. rem        OS/2 CMD
  4. rem
  5. rem ========================================================================
  6. rem
  7. rem first parameter : Path to node-specific temp dir
  8. rem second parameter : Path and File to be examined
  9. rem
  10. rem ========================================================================
  11. rem
  12. rem NOTE: This CMD file is simply a copy of the DOS BAT file! If you have
  13. rem       native OS/2 archivers, you will have to substitute their names
  14. rem       below.
  15. rem       Please let me know via NETMAIL how this works as it is untested!
  16.  
  17. md %1
  18.  
  19. cd %1
  20.  
  21. if exist %1\*.arj goto ARJ
  22. if exist %1\*.zip goto ZIP
  23. if exist %1\*.lzh goto LHA
  24. if exist %1\*.rar goto UNRAR
  25. if exist %1\*.arc goto PKUNPAK
  26. if exist %1\*.zoo goto ZOO
  27. if exist %1\*.pak goto PAK
  28.  
  29. rem    Add any other archivers you wish to support here, then follow the
  30. rem    examples below on extracting the info...
  31.  
  32. goto end
  33.  
  34. :ARJ
  35. arj e -y %2 *.*
  36. goto end
  37.  
  38. :ZIP
  39. pkunzip -o %2 *.*
  40. goto end
  41.  
  42. :LHA
  43. lha e /m+c+ %2 *.*
  44. goto end
  45.  
  46. :UNRAR
  47. unrar e -o+ %2 *.*
  48. goto end
  49.  
  50. :PKUNPAK
  51. pkunpak -r %2 *.*
  52. goto end
  53.  
  54. :ZOO
  55. zoo.exe e %2 *.*
  56. goto end
  57.  
  58. :PAK
  59. pak e/WA %2 *.*
  60. goto end
  61.  
  62. :end
  63.